﻿@model IEnumerable <WebVideo.EntityListQuestionOfUser   >
@{
    ViewBag.Title = "Index";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}
<script src="@Url.Content("~/Content/cssAdmin/js/plugins/jquery-1.7.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Content/cssAdmin/js/plugins/jquery-ui-1.8.16.custom.min.js")" type="text/javascript"></script>
<script type="text/javascript"  src="@Url.Content("~/Content/cssAdmin/js/custom/tables.js")" ></script>
<script type="text/javascript"  src="@Url.Content("~/Content/cssAdmin/js/plugins/jquery.dataTables.min.js")" ></script>
<script type="text/javascript">
  
</script>
<style type ="text/css" >
    .ChamDiem
    {
        font-size : 50px;
    }
</style>
<div class="maincontentinner">
    <ul class="maintabmenu">
        <li class="current"><a href="@Url.Action("Index", "ListQuestionOfUser")" >Index</a></li>
        
    </ul>
    <!--maintabmenu-->
    <div class="notification msgsuccess" style="display: none" id="nofSuccess">
        <a class="close"></a>
        <p id="msgNofSuccess">This is a success message.</p>
    </div>
    <!-- notification msgsuccess -->

    <div class="notification msgerror" style="display: none" id="nofError">
        <a class="close"></a>
        <p id="msgNofError">This is an error message.</p>
    </div>
    <!-- notification msgerror -->

    <div class="contenttitle radiusbottom0">
        <h2 class="table"><span>List Type Video</span></h2>
    </div>
    <!--contenttitle-->
    <table cellpadding="0" cellspacing="0" border="0" class="stdtable" id="dyntable">
       <colgroup>
        <col class="con0" />
        <col class="con1" />
        <col class="con0" />
       
       
    </colgroup>
    <thead>
        <tr>
            <th class="head0">Người dùng</th>
            <th class="head1">Tên video</th>
            <th class="head0">Câu hỏi</th>
            <th class="head1">Câu trả lời</th>
           
        </tr>
       
    </thead>
    <tfoot>
        <tr>
            <th class="head0">Người dùng</th>
            <th class="head1">Tên video</th>
            <th class="head0">Câu hỏi</th>
            <th class="head1">Câu trả lời</th>
           
            
        </tr>
    </tfoot>
        <tbody>
            @{
                foreach (var item in Model)
                {
                <tr class="gradeX">
                    <td>
                        @Html.DisplayFor(modelitem => item.UserName )
                    </td>
                    <td>
                        @Html.DisplayFor(modelitem => item.EntityQuestions_Essay.EntityVideo.Name  )
                    </td>
                     <td>
                        @Html.DisplayFor(modelitem => item.EntityQuestions_Essay.Des)
                    </td>
                    <td>
                        @Html.DisplayFor(modelitem => item.Result   )
                    </td>
                </tr> 
                }                      
            }
        </tbody>
    </table>
    <br />
     <div>
         
        <span class ="stdbtn btn_clock" style=" width : 65px;"> @Html.ActionLink("Đúng hết", "InsertPoint", new { UserName = @Model.First ().UserName,IdVideo =  @Model.First().EntityQuestions_Essay.EntityVideo.Id, KQ = "1"})</span>
          <span class ="stdbtn btn_clock" style=" width : 65px"> @Html.ActionLink("Sai hết", "InsertPoint", new { UserName = @Model.First ().UserName,IdVideo =  @Model.First().EntityQuestions_Essay.EntityVideo.Id, KQ = "2"})</span>
     </div>  
     
</div>
<!--maincontentinner-->
